<?php
namespace ITSociaal\Themes\Houtgrutter\Shopp;

shopp('collection.description');
?>

<?php if ( shopp( 'collection.hasproducts', 'load=prices,coverimages' ) ) : ?>
	<div class="category">
		<ul class="products">
			<?php while( shopp( 'collection.products' ) ) : ?>
				<li class="product" itemscope itemtype="http://schema.org/Product">
					<a href="<?php shopp( 'product.url' ); ?>" itemprop="url">
						<?php shopp( 'product.coverimage', 'width=236&height=142' ); ?>
						<div class="product-details">
							<h3 itemprop="name"><?php shopp( 'product.name' ); ?></h3>
							<span class="price" itemscope itemtype="http://schema.org/Offer"><span itemprop="price" class="amount"><?php shopp( 'product.saleprice', 'starting=' . __( 'from', 'Shopp' ) ); ?></span></span>
<?php if (false): ?>
						<?php if ( shopp( 'product.has-savings' ) ) : ?>
							<p class="savings"><?php _e( 'Save ', 'Shopp' ); ?><?php shopp( 'product.savings', 'show=percent' ); ?></p>
						<?php endif; ?>
<?php endif; ?>
						</div>
					</a>
					<form action="<?php shopp( 'cart.url' ); ?>" method="post" class="shopp product">
						<?php shopp( 'product.addtocart' ); ?>
					</form>
			</li>
			<?php endwhile; ?>
		</ul>
	</div>

<?php else: ?>
	<p class="notice"><?php _e( 'No products were found.', 'Shopp' ); ?></p>
<?php endif; ?>
